<html>
<head>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row">
        <div class="page-header text-center">
            <h2>已完成试卷</h2>
        </div>
    </div>

    <div class="row">
        <div class="col-md-8">
            <#if testList?size==0>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2 class="panel-title">Tips</h2>
                    </div>
                    <div class="panel-body">
                        <p>你还没做任何试卷</p>
                    </div>
                </div>
            </#if>

            <#assign index = 0>
            <#list testList as  tl>
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h2 class="panel-title">试卷名:${tl.testPaperName}</h2>
                        <h2 class="panel-title">出题老师:${teacherList[index].teacherName}</h2>
                        <#assign index = index+1>
                    </div>
                    <div class="panel-body">
                        <a target="_blank" class="btn btn-info" href="/student/testpaper/historypage/${tl.testPaperId}/${studentId}">查看详情</a>
                        <a target="_blank" class="btn btn-success" href="/student/testpaper/showpage/${tl.testPaperId}">重做</a>
                    </div>
                </div>
            </#list>
        </div>
    </div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

</html>